<?php
//logout
	
	if( empty($_GET['logout']) ) {
		setcookie('winnguestbook_u', '', time()+1);
		setcookie('winnguestbook_auth', '', time()+1);
		
		header("location: logout.php?logout=1");
	}else{
		header("location: index.php");
	}
?>